import request from '@/utils/request'

const api = {
  deleteClass: 'app-api/bookClassManagement/deleteClass',
  updateClassName: 'app-api/bookClassManagement/updateClassName',
  getClassMembers: 'app-api/bookClassManagement/getClassMembers',
  deleteMemberById: 'app-api/bookClassManagement/deleteMemberById',
  getAssignmentsByClassId: 'app-api/bookSchoolAssignment/getAssignmentsByClassId',
  getAssignmentDetailsById: 'app-api/bookSchoolAssignment/getAssignmentDetailsById'
}


export const deleteClass =(id) =>{
	return request.get(`${api.deleteClass}/${id}`)
}

export const updateClassName =(param) =>{
	return request.get(api.updateClassName,param)
}

export const getClassMembers = (param) =>{
	return request.get(api.getClassMembers,param)
}

export const deleteMemberById = (param) =>{
	return request.get(api.deleteMemberById,param)
}

export const getAssignmentsByClassId = (param) =>{
	return request.get(api.getAssignmentsByClassId,param)
}

export const getAssignmentDetailsById = (param) =>{
	return request.get(api.getAssignmentDetailsById,param)
}